package com.tianzehua.jvm.classloader;

/**
 *  主动使用的深入理解Test
 */
public class MyTest9 {
    public static void main(String[] args) {
        System.out.println(MyChild9.a);
        System.out.println("------------------------");
        MyChild9.doSomething();
    }
}

class MyChild9 extends  MyParent9{
    static {
        System.out.println("child9");
    }
}

class MyParent9{
    static  int  a = 9;
    static {
        System.out.println("partent9");
    }

    static  void  doSomething(){
        System.out.println("doSomething");
    }
}
